//package com.gpframework.module.controller.order;
//
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//
//import java.util.ArrayList;
//import java.util.Iterator;
//import java.util.List;
//import java.util.Arrays;
//import cn.hutool.core.convert.Convert;
//import cn.hutool.core.lang.TypeReference;
//import com.gpframework.common.exception.ParamException;
//import com.gpframework.common.utils.StringUtils;
//import lombok.RequiredArgsConstructor;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.DeleteMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import com.gpframework.common.annotation.Log;
//import com.gpframework.common.core.controller.BaseController;
//import com.gpframework.common.core.domain.AjaxResult;
//import com.gpframework.common.enums.BusinessType;
//import com.gpframework.module.order.domain.GpForwardLogDetail;
//import com.gpframework.module.order.domain.vo.GpForwardLogDetailVo;
//import com.gpframework.module.order.domain.req.GpForwardLogDetailReq;
//import com.gpframework.module.order.domain.req.GpForwardLogDetailAdd;
//import com.gpframework.module.order.domain.req.GpForwardLogDetailUpdate;
//import com.gpframework.module.order.service.IGpForwardLogDetailService;
//import com.gpframework.common.utils.poi.ExcelUtil;
//import javax.validation.Valid;
//import io.swagger.annotations.*;
//import com.gpframework.common.core.page.TableDataInfo;
///**
// * @ClassName GpForwardLogDetailController
// * @Author gpframework
// * @Date 2023-08-29
// * @Version 1.0.0
// * @Description 转发记录详情Controller 接口类
// */
//@Validated
//@Api(tags = "转发记录详情")
//@RequiredArgsConstructor(onConstructor_ = @Autowired)
//@RestController
//@RequestMapping("/order/forwardLogDetail" )
//public class GpForwardLogDetailController extends BaseController {
//
//    private final IGpForwardLogDetailService iGpForwardLogDetailService;
//
// /**
//  * @Description 分页
//  * @Author gpframework
//  * @Date 2023-08-29
//  * @Param gpForwardLogDetail
//  * @Return TableDataInfo
// */
//    @ApiOperation("列表")
//    @GetMapping("/list")
//    public TableDataInfo<GpForwardLogDetailVo> list(GpForwardLogDetailReq gpForwardLogDetailReq)
//    {
//        startPage();
//        QueryWrapper<GpForwardLogDetail> lqw = new QueryWrapper<GpForwardLogDetail>();
//        gpForwardLogDetailReq.generatorQuery(lqw,true);
//        List<GpForwardLogDetailVo> list = iGpForwardLogDetailService.listVo(lqw);
//        return getDataTable(list);
//    }
//
//    /**
//     * @Description 详情
//     * @Author gpframework
//     * @Date 2023-08-29
//     * @Param gpForwardLogDetail
//     * @Return AjaxResult
//     */
//    @ApiOperation("详情")
//    @GetMapping(value = "/{id}" )
//    public AjaxResult<GpForwardLogDetailVo> getInfo(@PathVariable("id" ) Long id) {
//        return AjaxResult.success(iGpForwardLogDetailService.getVoById(id));
//    }
//
//    /**
//     * @Description 新增
//     * @Author gpframework
//     * @Date 2023-08-29
//     * @Param gpForwardLogDetail
//     * @Return AjaxResult
//     */
//    @ApiOperation("新增")
//    @PostMapping
//    public AjaxResult add(@Valid @RequestBody GpForwardLogDetailAdd gpForwardLogDetailAdd) {
//        GpForwardLogDetail gpForwardLogDetail = Convert.convert(new TypeReference<GpForwardLogDetail>() {}, gpForwardLogDetailAdd);
//        return toAjax(iGpForwardLogDetailService.save(gpForwardLogDetail) ? 1 : 0);
//    }
//
//    /**
//     * @Description 修改
//     * @Author gpframework
//     * @Date 2023-08-29
//     * @Param gpForwardLogDetail
//     * @Return AjaxResult
//     */
//    @ApiOperation("修改")
//    @PutMapping
//    public AjaxResult edit(@Valid @RequestBody GpForwardLogDetailUpdate gpForwardLogDetailUpdate) {
//        GpForwardLogDetail gpForwardLogDetail = Convert.convert(new TypeReference<GpForwardLogDetail>() {}, gpForwardLogDetailUpdate);
//        return toAjax(iGpForwardLogDetailService.updateById(gpForwardLogDetail) ? 1 : 0);
//    }
//
//    /**
//     * @Description 删除
//     * @Author gpframework
//     * @Date 2023-08-29
//     * @Param gpForwardLogDetail
//     * @Return AjaxResult
//     */
//    @ApiOperation("删除")
//    @DeleteMapping("/{ids}" )
//    public AjaxResult remove(@PathVariable Long[] ids) {
//        return toAjax(iGpForwardLogDetailService.removeByIds(Arrays.asList(ids)) ? 1 : 0);
//    }
//}
